package com.api.web.controller.tool;

import com.api.common.core.controller.BaseController;
import com.api.common.core.domain.AjaxResult;
import com.api.common.utils.MessageUtils;
import org.springframework.data.repository.query.Param;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/testLang")
public class TestLangController extends BaseController {
    @GetMapping("/appLang")
    public AjaxResult chekcAppLang(@Param("appLang") String appLang) {
        return warn(MessageUtils.message(appLang, "robot.upload.error", "Hello"));
    }
}
